@extends('backend.layouts.master')

@section('title', '用户中心')

@section('content')
  <!-- content start -->
  <div class="admin-content">

    <div class="am-cf am-padding">
      <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">用户中心</strong> / <small></small></div>
    </div>

    <div class="am-g">
      <div class="am-u-sm-12 am-u-md-6">
        <div class="am-btn-toolbar">
          <div class="am-btn-group am-btn-group-xs">
            {{--<button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 保存</button>
            <button type="button" class="am-btn am-btn-default"><span class="am-icon-archive"></span> 审核</button>
            <button type="button" class="am-btn am-btn-default"><span class="am-icon-trash-o"></span> 删除</button>--}}
          </div>
        </div>
      </div>
    </div>

    <div class="am-g" style="min-height: 800px;">



      <div class="am-u-sm-12">
        <br />
        <div  @if  (!Session::get('message')) style="display:none;" @endif  class="am-alert  @if  (Session::get('message.type')=='s')am-alert-success @endif @if (Session::get('message.type')=='w')am-alert-warning @endif @if (Session::get('message.type')=='d')am-alert-danger @endif" data-am-alert>
          <button type="button" class="am-close">&times;</button>
          <p>{{ Session::get('message.message') }}</p>
        </div>
          <table class="am-table am-table-striped am-table-hover table-main">
            <thead>
              <tr><th class="table-id">ID</th><th class="table-id">openid</th><th class="table-type">身份</th><th class="table-type">手机号</th><th class="table-type">昵称</th><th class="table-type">头像</th><th class="table-type">积分</th><th class="table-date am-hide-sm-only">添加时间</th>{{--<th class="table-set">操作</th>--}}
              </tr>
          </thead>
          <tbody>


            <?php foreach ($articles as $article): ?>

            <tr>
              <td>{{$article->id}}</td>
              <td>{{$article->openid}}</td>
              <td>{{$article->userid}}</td>
              <td>{{$article->phonenum}}</td>
              <td>{{$article->nickname}}</td>
              <td><img src="{{$article->headimgurl}}" width="100" height="100"/></td>
              <td>{{$article->score}}</td>
              <td class="am-hide-sm-only">{{$article->created_at}}</td>
              {{--<td>
                <div class="am-btn-toolbar">
                  <div class="am-btn-group am-btn-group-xs">
                    <a href="{{url('/backend/recomment')}}?id={{$article->id}}"  target="_blank" class="am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-pencil-square-o"></span> 编辑</a>
                    <a href="{{url('/backend/delcomment')}}?id={{$article->id}}" class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"><span class="am-icon-trash-o"></span> 删除</a>
                  </div>
                </div>
              </td>--}}
            </tr>

            <?php endforeach; ?>

          </tbody>
        </table>
          <div class="am-cf">
            <?php echo $articles->render(); ?>
      </div>

    </div>
  </div>
  <!-- content end -->
@stop